import numpy as np
from sklearn.svm import SVC
from sklearn.multiclass import OneVsRestClassifier

X = np.array([[-1, -1], [-2, -1], [1, 1], [2, 1]])
y = np.array([1, 1, 2, 2])

model = OneVsRestClassifier(SVC(kernel='linear'))
clf = model.fit(X, y)

print(clf.predict([[1, 2]]))
